package com.java.service.impl;


import java.util.List;

import org.springframework.stereotype.Service;

import com.java.base.DaoSupportImpl;
import com.java.domain.PatientDo;
import com.java.service.PatientService;

@Service
public class PatientServiceImpl extends DaoSupportImpl<PatientDo> implements
		PatientService {
	public List<PatientDo> queryPatient(Integer uid){
		List<PatientDo> list = getSession()
				.createQuery("FROM PatientDo where p_uid =:p_uid order by p_jzsj desc")
				.setParameter("p_uid", uid).list();
		return list;
	}

}
